import { Button, Result } from 'antd';
import { useRouter } from '@/router/hooks';

const Page404 = () => {
  const router = useRouter();
  return (
    <Result
      status="404"
      title="404"
      subTitle="Sorry, the page you visited does not exist."
      extra={
        <Button type="primary" onClick={() => router.replace('/')}>
          Back Home
        </Button>
      }
    />
  );
};

export default Page404;
